#!/usr/bin/env python3
# -*- coding=utf-8 -*-
# 题目：按逗号分隔列表。

def f1():
    a = [1, 2, 3, 4, 5]
    for i in a:
        print(f"{i},", end='')


def f2():
    L = [1, 2, 3, 4, 5]
    s1 = ','.join(str(n) for n in L)
    print(s1)


f = f2
if __name__ == "__main__":
    f()
